package com.niit.mall.user.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 阿里云OSS配置类：用于配置阿里云OSS相关信息
 *
 * @author ChuXuan
 * @date 2025/06/13
 */
@Configuration
@ConfigurationProperties(prefix = "aliyun.oss")
@Data
public class AliyunossConfig {
    @Value("${aliyun.oss.endpoint}")
    private String endpoint;
    @Value("${aliyun.oss.bucketName}")
    private String bucketName;
    @Value("${aliyun.oss.region}")
    private String region;
    @Value("${aliyun.oss.accessKeyId}")
    private String accessKey;
    @Value("${aliyun.oss.accessKeySecret}")
    private String secretKey;
}
